<?php
$this->layout()->title = $this->translate('Liste des templates'); 
$list_template='<ul>';

foreach($this->templates as $template)
{
	$edit_url=$this->url(array('module'=>'admin','controller'=>'templates','update'=>$template['name']));
	$delete_url=$this->url(array('module'=>'admin','controller'=>'templates','delete'=>$template['name']));
	$list_template .='<li>
						<table border="1">
							<tr>';
	
	$list_template .='<td width="300" height="300">
				<img src="'.$this->baseUrl().'/templates/'.$template['name'].'/preview.jpg"
					width="300" height="300" border="0" alt="preview.jpg"/>
					</td>';
	$list_template .='<td width="400">
							<div class="wmp_td">'.$template['name'].'</div>';
	$list_template .=		'<div class="wmp_td">'.$template['title'].'</div>';
	$list_template .=		'<div class="wmp_td">'.$template['description'].'
								</div>
						</td>';
	
	$list_template .='			</tr>
							</table>
						</li>';
}
$list_template  .='</ul>';
echo $list_template;

?>
